package com.huike.clues.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huike.clues.domain.TbClue;
import com.huike.clues.mapper.ClueMapper;
import com.huike.clues.service.ClueService;
import com.huike.common.result.PageResult;
import com.huike.common.result.Result;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClueServiceImpl implements ClueService {
    @Autowired
    private ClueMapper clueMapper;

    @Override
    public Result<PageResult> listClue(int i) {
        //TbClue clue = clueMapper.findById(i);
        TbClue clue = clueMapper.selectById(i);
        Page<TbClue> page = new Page<>();
        return Result.success(new PageResult(page.getTotal(), page.getRecords()));
    }

    @Override
    public Result<PageResult> listCluePool(int i) {

        return null;
    }
}
